#include <iostream>
#define SIZE 20

using namespace std;

double numbers[SIZE];
int i, n;
	
void print();
void read();

int main()
{
	double s = 0;
	cout << "n = "; 
	cin >> n;
	
	read();
	
	for (i = 0; i < n; ++i)
		s += numbers[i];
	
	print();

	cout << "s = " << s;
	cout << endl;
	
	return 0;
}

void print()
{
	for (i = 0; i < n; ++i)
		cout << numbers[i];
	cout << endl;	

}

void read()
{
	for (i = 0; i < n; ++i)
	{
		cout << "number[" << i << "]=";
		cin >> numbers[i];
	}

}
